from django.db import models


# Create your models here.
class Ward(models.Model):
    name = models.CharField(max_length=30, verbose_name="病区名称", unique=True)
    desc = models.CharField(max_length=255, verbose_name="病区描述", default='', blank=True)
    signature = models.CharField(max_length=255, verbose_name="护士长签名", default='', blank=True)

    class Meta:
        verbose_name = "病区"
        verbose_name_plural = verbose_name
        db_table = "hospital_ward"


# 按病区分表
class Wardbed(models.Model):
    name = models.CharField(max_length=30, verbose_name="名称", unique=True)
    order_num = models.IntegerField(default=1, verbose_name="排序序号")

    class Meta:
        verbose_name = "病床"
        verbose_name_plural = verbose_name
        db_table = "hospital_wardbed"
